package com.ld.control.business.process.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 任务流程模板
 * </p>
 *
 * @author wangfeng
 * @since 2024-04-24
 */
@Data
@TableName("process_tmp")
@Schema(description = "任务流程模板")
public class ProcessTmpModel implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "流程所在区域")
    private Long regionId;

    @Schema(description = "流程模板名称")
    private String name;

    @Schema(description = "流程模板类型：0普通流程，1:初始化流程，2结束流程")
    private Integer type;

    @Schema(description = "创建人id")
    private Long createBy;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "更新人")
    private Long updateBy;

    @Schema(description = "更新时间")
    private Date updateTime;


    public static final String ID = "id";

    public static final String REGION_ID = "region_id";

    public static final String NAME = "name";

    public static final String TYPE = "type";

    public static final String CREATE_BY = "create_by";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_BY = "update_by";

    public static final String UPDATE_TIME = "update_time";

}
